import {fetch,post}  from "@/util/http.js";
const material   = {
    save(data) {
        return post('/master/materials',data);
    },
    listByPage(page=1,pageSize=10,materialName){
        return fetch('/master/materials/page?page='+page + "&pageSize=" +pageSize + "&materialName="+materialName)
    },
    getNewMaterialCode(){
        return fetch('/master/generationNumber/material');
    },
}

export default material;